package com.estore.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.estore.info.ProductImageInfo;

public class ProductImageInfoMapper implements RowMapper<ProductImageInfo> {

	@Override
	public ProductImageInfo mapRow(ResultSet rs, int arg1) throws SQLException {
		ProductImageInfo info = new ProductImageInfo();
		info.setMainImg(rs.getInt("mainimg"));
		info.setImgLink(rs.getString("linkimg"));
		info.setImgType(rs.getInt("imgtype"));
		return info;
	}

}
